const Voting = artifacts.require("Voting");

module.exports = function(deployer) {
  deployer.deploy(Voting, ['Alice','Bob','Cary']); //  部署第一个参数为 文件部署名, 第二个为 构造函数
};

// Deploying 'Voting'
// ------------------
// > transaction hash:    0xf8db79807db164743e3f2f66a0d5f72e1c8b0556d8f3d63231dd6a874f59457e
// > Blocks: 0            Seconds: 0lc-bin. Attempt #1
// > contract address:    0xa5415aC23787C492dA4AD165f4BfA2e2EF5eC030
// > block number:        405
// > block timestamp:     1671178832
// > account:             0x895b004a698fF51f387e94CEAf7Dc1e60F890897
// > balance:             29.62832115000001
// > gas used:            666124 (0xa2a0c)
// > gas price:           20 gwei
// > value sent:          0 ETH
// > total cost:          0.01332248 ETH